<%
var pageType = site_info.page.name;
%>
<%include templates/header%>

	<div class="container" style="margin-top:30px;">
		<div class="row">
	    	<div class="col-sm-12">
	        	<!-- 搜索区 -->
	        	<div class="pull-right">
		            <div class="form-group has-feedback">
			            <label class="control-label">　</label>
			            <input type="text" id="keyword" name="keyword" class="form-control" placeholder="search in all <%=pageType%> ...">
			            <span id="btnSearch" class="text-muted glyphicon glyphicon-search form-control-feedback pointer"></span>
		            </div>
		        </div>
	      		<div class="pull-right" style="margin-top:27px; margin-right:10px;">
			        <a id="btnCreate" href="#/operate-essay/1" 
			        	class="btn btn-primary btn-lg btn-sm"
			        	ng-show="!source.showCancelCreate">
			        	Create new <%=pageType%>
			        </a>
			        <a id="btnCancelCreate" href="#/list/2" 
			        	class="btn btn-warning btn-lg btn-sm hide"
			        	ng-class="{'hide':!source.showCancelCreate}">
			        	Cancel create
			        </a>
		        </div>

		        <h1 class="text-muted">
		        	<%if(!!locals.user && locals.user.userId!=site_info.default.user_id){%>
		        	<img class="member" src="/images/profile/profile-img.png" />
		        	<%}%>
		          	<%=site_info.page.intro%> <small><%=site_info.page.intro_desc%></small>
		        </h1>	        
	        	<hr />
	      	</div>
	    </div>

	    <div class="row">
			<%include templates/nav%>

			<div class="show-type-list col-sm-9 tasks-widget ui-view-container" >
				<div ng-view class=" col-sm-12 animated fadeInDown fadeOutDown" >
				</div>
			</div>
		</div>
	</div>

<%include templates/footer%>

<script type="text/javascript" src="/javascripts/essay.app.js"></script>
<script type="text/javascript" src="/javascripts/starter.services.js"></script>
<script type="text/javascript" src="/javascripts/starter.controllers.js"></script>
<script type="text/javascript" src="/javascripts/starter.filters.js"></script>
<script type="text/javascript" src="/javascripts/starter.directives.js"></script>

<script type="text/javascript">
var _scope = angular.element($("#starterCtl")).scope();

</script>
